<?
include "./lib_getdblist.php";
header('Content-Type: text/html; charset=utf-8'); 
$pattern = $_GET['pattern'];

$shops = getDbList("SELECT DISTINCT shop_name FROM shops WHERE shop_name LIKE '%".$pattern."%';");

print("[");
foreach($shops as $shop){
	print("'$shop',");
}
print("]");
?>
